home *** CD-ROM | disk | FTP | other *** search
- Path: nntp.uio.no!solace!news
- From: cmh@lls.se (Magnus Holmgren)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Want to boot FAAAST?
- Date: 21 Mar 1996 19:48:02
- Organization: Programmers' Point
- Message-ID: <4iup7r$e79@fizban.solace.mh.se>
- References: <4irl0n$1dng@columba.udac.uu.se>
- NNTP-Posting-Host: myrddin.lls.se
- Mime-Version: 1.2
- Content-Type: TEXT/PLAIN; charset=ISO-8859-1
- Content-Transfer-Encoding: 8BIT
- X-FTN-To: Erik Trulsson
- X-Newsreader: Spot 1.3a #26/NetGate 1.2
-
- In a message of 21 Mar 96, Erik wrote to :
-
- ET> That is a very common (and natural) misconception.
- ET> The 1024 bytes block size reported bt RAM: is a lie from the filesystem.
-
- And it confuses the Workbench. ;)
-
- ET> The ram disk doesn't use fixed blocks to hold the files, it only uses
- ET> the amount of memory that is actually needed (plus some small overhead
- ET> most likely) If you want to test this you can do what I did, namely
- ET> create something like 2000 small files in RAM: and check the amount of
- ET> free memory before and after. When I did this the amount of free memory
- ET> only decreased by a couple of hundred K. If RAM: had actually used 1024
- ET> byte blocks like a normal disk, free memory should have decreased by 4
- ET> Megabytes, but it didn't. To sum it up: putting a large amount of small
- ET> files in RAM: does not use up much more memory than the actual size of
- ET> those files. (plus some memory for storing the names and sizes of the
- ET> files and that kind of stuff)
-
- I tried this myself, and found the per-file overhead to be somewhere
- between 100 and 200 bytes, which I find quite reasonable.
-
- However, if you create _empty_ files, you get an overhead on at least 1 KB
- per file, which is quite a difference.. ;)
-
- --
- Magnus Holmgren - Amiga programmer and enthusiast
-
-
-